<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>List Vacancy</title>
    </h:head>
    <h:body>
        <ui:composition template="templates/template_user.xhtml">
            <ui:define name="content">
                <h:form>
                    <h:outputLabel value="" style="color: burlywood"/>
                    <p:panelGrid columns="2" style="width: 700px" styleClass="ui-custompanelgrid">  
                        <f:facet name="header" >  
                            <label style="color: burlywood">Recruitment List</label>
                        </f:facet>  
                        <h:dataTable value="#{smb.vacancyList()}" var="v">
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Title" style="color: burlywood"/>
                                </f:facet>
                                <h:outputText value="#{v.vc.title}" style="color: burlywood"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Position" style="color: burlywood"/>
                                </f:facet>
                                <h:commandLink value="#{v.vc.position}" action="#{smb.link(v.vc)}" style="color: burlywood"></h:commandLink>
                            </h:column>
                        </h:dataTable>
                    </p:panelGrid>  </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

